package com.jgp.third.sms.assist;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2018/9/4
 */
public abstract class SendSms {
    
    abstract String send();
    
    public static void main(String[] args) {
        String path = "/Users/congcong/Public/projects/JGP/jgp-front-pc/node_modules/_tinymce@4.8.2@tinymce/plugins";
        try {
            String plugins = "";
            List<Path> list = Files.list(Paths.get(path)).collect(Collectors.toList());
            for (Path path1 : list) {
                plugins += ", '"+path1.getFileName()+"'";
            }
            /*Files.list(Paths.get(path)).collect(Collectors.toList()).forEach(path1 -> {
                plugins.concat(", '"+path1.getFileName()+"'");
                System.out.println("import 'tinymce/plugins/"+path1.getFileName()+"';");
            });*/
            System.out.println(plugins);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
